home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _B7E4828668C745FBA16B514AF2D66BB6 < prev    next >
Encoding:
Text File  |  2004-06-16  |  5.9 KB  |  260 lines

  1. $SPECPOW(f, 3)
  2.  
  3. shader()
  4. {// >= gffx
  5.     SurfaceID(SRFTYPE)
  6.     Shaderquality(3)
  7.     Cull("cw")
  8.     pass()
  9.     {
  10.         Lighting()
  11.         Pixelshader("Road14.psh")
  12.  
  13.         !include("__TerrainColormap.mtt")
  14.         !include("__TerrainDetail1.mtt")
  15.         !include("__TerrainDetail2.mtt")
  16.         !include("__TerrainColormapSmall.mtt")
  17.         !include("__Clouds.mtt")
  18.         !include("__Tex1.mtt")
  19.  
  20.         AmbientColor(0, 0, 0, 1.000)
  21.         DiffuseColor(0, 0, 0, 1.000)
  22.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  23.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  24.         SpecularPow(SPECPOW)
  25.     }
  26.  
  27.     lightpass()
  28.     !include("SpotShadowmap.mtt")
  29.     !include("SpotRoad14.mtt")
  30. }
  31.  
  32. shader()
  33. {// >= gffx
  34.     SurfaceID(SRFTYPE)
  35.     Shaderquality(2)
  36.     Cull("cw")
  37.     pass()
  38.     {
  39.         Lighting()
  40.         Pixelshader("RoadLow14.psh")
  41.  
  42.         !include("__TerrainColormap.mtt")
  43.         !include("__TerrainDetail1.mtt")
  44.         !include("__TerrainDetail2.mtt")
  45.         !include("__TerrainColormapSmall.mtt")
  46.         !include("__Tex1.mtt")
  47.  
  48.         AmbientColor(0, 0, 0, 1.000)
  49.         DiffuseColor(0, 0, 0, 1.000)
  50.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  51.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  52.         SpecularPow(SPECPOW)
  53.     }
  54.  
  55.     lightpass()
  56.     !include("SpotShadowmapLow.mtt")
  57.     !include("SpotRoad14.mtt")
  58. }
  59.  
  60.  
  61. shader()
  62. {// >=gf3
  63.     SurfaceID(SRFTYPE)
  64.     Shaderquality(3)
  65.     Cull("cw")
  66.     pass()
  67.     {
  68.         Pixelshader("Road11_1.psh")
  69.  
  70.         !include("__TerrainColormap.mtt")
  71.         !include("__TerrainDetail1.mtt")
  72.         !include("__TerrainDetail2.mtt")
  73.         !include("__TerrainColormapSmall.mtt")
  74.     }
  75.     pass()
  76.     {
  77.         Lighting()
  78.         Pixelshader("Road11_2.psh")
  79.         !include("__Tex1.mtt")
  80.         !include("__TerrainColormap.mtt")
  81.         !include("__Clouds.mtt")
  82.  
  83.         AmbientColor(0, 0, 0, 1.000)
  84.         DiffuseColor(0, 0, 0, 1.000)
  85.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  86.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  87.         SpecularPow(SPECPOW)
  88.         DepthFunc("lequal", 0)
  89.         BlendFunc("src_alpha", "inv_src_alpha")
  90.     }
  91.     pass()
  92.     {
  93.         Pixelshader("Road11_3.psh")
  94.  
  95.         !include("__TerrainColormap.mtt")
  96.         !include("__Clouds.mtt")
  97.         DepthFunc("lequal", 0)
  98.         BlendFunc("zero", "inv_src_color")
  99.         BlackFog()
  100.     }
  101.  
  102.  
  103.     lightpass()
  104.     !include("SpotShadowmap.mtt")
  105.     !include("SpotRoad.mtt")
  106. }
  107.  
  108.  
  109. shader()
  110. {// >=gf3
  111.     SurfaceID(SRFTYPE)
  112.     Shaderquality(2)
  113.     Cull("cw")
  114.     pass()
  115.     {
  116.         Pixelshader("TerrainLow.psh")
  117.  
  118.         !include("__TerrainColormap.mtt")
  119.         !include("__TerrainDetail1.mtt")
  120.         !include("__TerrainDetail2.mtt")
  121.         !include("__DetailsMask.mtt")
  122.     }
  123.     pass()
  124.     {
  125.         Lighting()
  126.         Pixelshader("RoadLow.psh")
  127.  
  128.         !include("__Tex1.mtt")
  129.         !include("__TerrainColormap.mtt")
  130.  
  131.         AmbientColor(0, 0, 0, 1.000)
  132.         DiffuseColor(0, 0, 0, 1.000)
  133.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  134.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  135.         SpecularPow(SPECPOW)
  136.         DepthFunc("lequal", 0)
  137.         BlendFunc("src_alpha", "inv_src_alpha")
  138.     }
  139.  
  140.     lightpass()
  141.     !include("SpotShadowmapLow.mtt")
  142.     !include("SpotRoad.mtt")
  143. }
  144.  
  145. shader()
  146. {// >=gf3
  147.     SurfaceID(SRFTYPE)
  148.     Shaderquality(1)
  149.     Cull("cw")
  150.     pass()
  151.     {
  152.         Lighting()
  153.         Pixelshader("RoadVeryLow.psh")
  154.  
  155.         !include("__TerrainColormap.mtt")
  156.         !include("__TerrainDetail1.mtt")
  157.         !include("__Tex1.mtt")
  158.  
  159.         AmbientColor(0, 0, 0, 1.000)
  160.         DiffuseColor(0, 0, 0, 1.000)
  161.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  162.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  163.         SpecularPow(SPECPOW)
  164.     }
  165.  
  166.     lightpass()
  167.     !include("SpotShadowmapVeryLow.mtt")
  168.     !include("SpotRoad.mtt")
  169. }
  170.  
  171.  
  172. shader()
  173. {//gf2
  174.     SurfaceID(SRFTYPE)
  175.     Cull("cw")
  176.     Shaderquality(1)
  177.     pass()
  178.     {
  179.         tmu()
  180.         {
  181.             TexGen("planar")
  182.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  183.             texture()
  184.             {
  185.                 Image(%colortexture)
  186.                 addressfunc("clamp", "clamp", "clamp")
  187.             }
  188.             ColorOp("mul_add", "texture_a", "inv_tfactor_a", "tfactor_a")
  189.         }
  190.  
  191.         tmu()
  192.         {
  193.             ColorOp("mul", "tfactor", "current", "current")
  194.         }
  195.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  196.     }
  197.     lightpass()
  198.     !include("SpotShadowmapVeryLow.mtt")
  199.     !include("spot_spotmap.mtt")
  200.     pass()
  201.     {
  202.         tmu()
  203.         {
  204.             texture()
  205.             {
  206.                 Mapchannel(0)
  207.                 Image(TEXTURE1)
  208.                 !include(TEX1OPTIONSFILE)
  209.             }
  210.             ColorOp("arg1", "inv_texture", "current", "current")
  211.         }
  212.         DepthFunc("lequal", 0)
  213.         BlendFunc("zero", "inv_src_color")
  214.         BlackFog()
  215.     }
  216.  
  217. }
  218.  
  219.  
  220.  
  221. shader()
  222. {//gf2
  223.     SurfaceID(SRFTYPE)
  224.     Cull("cw")
  225.     Shaderquality(0)
  226.     pass()
  227.     {
  228.         tmu()
  229.         {
  230.             TexGen("planar")
  231.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  232.             texture()
  233.             {
  234.                 Image(%colortexture)
  235.                 addressfunc("clamp", "clamp", "clamp")
  236.             }
  237.             ColorOp("arg2", "texture", "tfactor", "current")
  238.             AlphaOp("mul_add", "texture", "inv_tfactor", "tfactor")
  239.         }
  240.         tmu()
  241.         {
  242.             texture()
  243.             {
  244.                 Mapchannel(0)
  245.                 Image(TEXTURE1)
  246.                 !include(TEX1OPTIONSFILE)
  247.             }
  248.             ColorOp("mul", "texture", "current", "current")
  249.             AlphaOp("arg2", "texture", "current", "current")
  250.         }
  251.         BlendFunc("src_alpha", "zero")
  252.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  253.     }
  254.     lightpass()
  255.     !include("SpotShadowmapVeryLow.mtt")
  256.     !include("spot_spotmap.mtt")
  257. }
  258.  
  259.  
  260.